import http from '../uni_modules/nx-http/js_sdk/index.js'

const api = {
	getProductList: (data = {}) => {
		return http.request({
			url: '/wx/ddk/getTopGoodsList',
			method: 'GET',
			data: data,
			loading: true
		})
	},
	searchProductList: (data = {}) => {
		return http.request({
			url: '/wx/ddk/getGoodsSearch',
			method: 'GET',
			data: data,
			loading: true
		})
	},
	getGx: (data = {}) => {
		return http.request({
			url: '/wx/user/gx',
			method: 'GET',
			data: data,
			loading: true
		})
	},
}

export default api